בַּצַּר־לִי֙ אֶקְרָ֣א יְהוָ֔ה וְאֶל־אֱלֹהַ֖י אֶקְרָ֑א וַיִּשְׁמַ֤ע מֵהֵֽיכָלוֹ֙ קוֹלִ֔י וְשַׁוְעָתִ֖י בְּאָזְנָֽיו׃
In my distress I called upon the LORD, yea, I called unto my God; and out of His temple He heard my voice, and my cry did enter into His ears.
Read Jewish philosophy on II Samuel 22:7: Rambam's Guide for the Perplexed, Saadia Gaon, and classical Jewish philosophical sources, free online.